php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#144438 - 03/27/02 12:22 PM [6.2x] Recycle bin
wwb95 Offline
Member

Registered: 11/14/01
Posts: 154
##################################################################################
#HACK NAME : Recycle bin For UBB 6.2.1 #
##################################################################################
##VERSION: 2 Beta #
##################################################################################
##DESCRIPTON : #
## This hack will place any deleted topic or replay in a forum that #
## you create for this aspect. #
## The Recycle bin can be toggled off in the control panel. #
## Any topic or replay deleted or edited by a user, Moderated, or #
## administrator is going to be moved to the recycle form. #
## If you delete a topic from a recycle bin it will be deleted or ever #
##################################################################################
##Modification #
## Add support to record the move and close topic #
##################################################################################
##AUTHOR : wwb95 #
##################################################################################
##file to edit: #
## EDIT CP_VARS_MISC.PL #
## EDIT CP_LIB.CGI #
## ubb_edit_post.cgi #
## ubb_topic_maint.cgi #
##################################################################################
##DISCLAIMER #
## By using this modification, the user implicitly agrees #
## that they are willingly modifying any and all files at #
## their own risk. Should any errors occur either as a #
## direct or indirect result of said modifications the user #
## agrees not to hold Infopop Corporation or any of the #
## individuals listed accountable. #
## #
## #
## IN OTHER WORDS: PLEASE MAKE BACKUP COPIES OF EVERY FILE YOU PLAN TO #
## MODIFY PRIOR TO MODIFICATION!! #
##################################################################################

Will this hack will give you the ability to store any modification done to a topic or post. It has a full CP control.
You can enable the following from the CP
1-Enable the recycle bin
2-Enable recycles for edit post
3-Enable recycles for deletion of a post

Enabling for editing is when a user, modulator, or admin change some thing in his post
Enable for deletion is when a user, modulator, or admin delete a post

When a user edits a post or topic the first post in a topic that will appear in the recycle bin will look like this
000001
This post was edited by: wbb95
On: March 27, 2002 at: 08:04 PM
The post number of this is: 1
The forum in which the post was: Forum 1
The topic number was: 000001

The subject will change in the recycle to be:
(edit) The subject

the same thing when a post is deleted

When a topic is deleted the information above will be added to the first post of the topic

If delete or edit a post or topic in the recycle it will be removed for ever

To empty the recycle you have to do that from the cp== maintenance== Prune post

I have done to hack
For the ubb with No sticky hack added === you can down load this from
http://66.113.218.51/recycle_621.zip

For the ubb with sticky hack added === you can down load this from
http://66.113.218.51/recycle_621_sticky.zip

Top
#144439 - 03/28/02 09:16 AM Re: [6.2x] Recycle bin
bulbi Offline
Junior Member

Registered: 01/18/02
Posts: 14
hi wwb smile

works fine tested it on my Board

one addition would be nice

you could implement the modlog feature from qasic because these two hacks are placed in the same files you need to edit smile

the change need to be in ubb_topic_maint.cgi

[code][/code]

Top
#144440 - 03/28/02 10:20 AM Re: [6.2x] Recycle bin
wwb95 Offline
Member

Registered: 11/14/01
Posts: 154
bulbi
Thank you very much for this addition. Yes it also work fine in my board for along time now.
By using this hack I do not think it is important to change what you done you could ignore it since it will show you how has modify or delete a post in the recycle bin., but if you want to have a record you thankfully don the require changes.
Thanks again bulbi

Top
#144441 - 03/29/02 08:09 AM Re: [6.2x] Recycle bin
Consolefreak Offline
Member

Registered: 03/17/02
Posts: 53
Loc: The Netherlands
great hack, right now finding out how it works laugh

Top
#144442 - 03/29/02 08:27 AM Re: [6.2x] Recycle bin
Consolefreak Offline
Member

Registered: 03/17/02
Posts: 53
Loc: The Netherlands
i found out how it works laugh , thanks!!!

Top
#144443 - 03/29/02 08:58 AM Re: [6.2x] Recycle bin
VVouter Offline
Member

Registered: 03/13/02
Posts: 47
Loc: Hoorn, The Netherlands
Yeh works great now I can see who is deleting the topics tipsy

Top
#144444 - 03/30/02 05:59 AM Re: [6.2x] Recycle bin
Andrew Offline
Member

Registered: 03/11/00
Posts: 48
great work on this hack, smile

Top
#144445 - 03/30/02 05:58 PM Re: [6.2x] Recycle bin
wwb95 Offline
Member

Registered: 11/14/01
Posts: 154
##################################################################################
##VERSION: 2 Beta #
##################################################################################

##Modification #
## Add support to record the move and close topic #
##################################################################################

Top
#144446 - 03/31/02 07:59 PM Re: [6.2x] Recycle bin
eXtremeTim Offline
Member

Registered: 10/13/01
Posts: 544
Looks like i need to upgrade it. Can i get you to post an update file for what all needs to be done to upgrade from the one version.
_________________________
United Devices Points: [img]http://www.ubbdev.com/ud/?u=extremetim&s=1[/img]

Top
#144447 - 04/06/02 03:14 AM Re: [6.2x] Recycle bin
Consolefreak Offline
Member

Registered: 03/17/02
Posts: 53
Loc: The Netherlands
Yeah please make that one...

Top
#144448 - 04/06/02 05:56 AM Re: [6.2x] Recycle bin
wwb95 Offline
Member

Registered: 11/14/01
Posts: 154
eXtremeTim & Consolefreak
I have checked the 6.2.1.1 and none of the code need to be upgrade so I think it will work fine with 6.2.1.1

Top
#144449 - 04/06/02 06:14 AM Re: [6.2x] Recycle bin
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
I think Console and Tim meant upgrade instructions from v1 of this hack to v2.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#144450 - 04/06/02 06:41 AM Re: [6.2x] Recycle bin
wwb95 Offline
Member

Registered: 11/14/01
Posts: 154
Thanks Lk
The upgrade file is in this
http://66.113.218.51/recycle_621_up_from_1_to_2.zip

Top
#144451 - 04/09/02 12:48 PM Re: [6.2x] Recycle bin
aleina Offline
Member

Registered: 10/14/00
Posts: 67
Loc: Sweden
Great hack smile

Is it possible to exclude private forums??

aleina
_________________________
aleina

Top
#144452 - 04/25/02 09:07 PM Re: [6.2x] Recycle bin
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Going to back up here, if anyone read my previous post, forget it. wink

I had thought I managed to correct the following error:

Error
An error has occured:

C:/webs/softest/cgi-bin/ubbcgi/ubb_topic_maint.cgi: Unmatched right curly bracket at C:/webs/softest/cgi-bin/ubbcgi/ubb_topic_maint.cgi line 281, at end of line
syntax error at C:/webs/softest/cgi-bin/ubbcgi/ubb_topic_maint.cgi line 281, near "}"
Please inform the board administration of this error so that they may fix the problem. Thank you!

So, I went in and removed the extra }, and then it all appeared to work, of course then I started getting this error when I deleted a post:

Error
An error has occured:

Tried to open zero-sized topic 000002 in forum 7. at C:/webs/forum/cgi-bin/ubbcgi/ubb_lib_files.cgi line 757.
Please inform the board administration of this error so that they may fix the problem. Thank you!

BUT, it does delete the post and move it to the recycle bin... I'm kind of stumped here...

Looking for ideas, anyone? smile

Thanks,

~Z

Top
#144453 - 04/29/02 09:38 PM Re: [6.2x] Recycle bin
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Lil help? Anyone? Is this one just me? I rehacked the works over again, still get the message telling me there's an unmatched } and just can't seem to fix it... because when I do I get the other strange error. frown

Thanks,

~Z

Top
#144454 - 06/05/02 12:15 PM Re: [6.2x] Recycle bin
id242 Offline
Junior Member

Registered: 07/08/01
Posts: 1
Loc: Los Angeles
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by Zackary:
Lil help? Anyone? Is this one just me? I rehacked the works over again, still get the message telling me there's an unmatched } and just can't seem to fix it... because when I do I get the other strange error. frown </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">Check cp_lib.cgi

......
#################
#######Look for:#
#################
$vars_misc{use_cache} = 'yes';

#######Under that add:
$vars_misc{recycle} = '1';
$vars_misc{recycle_move} = 'no';
$vars_misc{recycle_close} = 'no';
$vars_misc{recycle_topic} = 'yes';
$vars_misc{recycle_replay} = 'yes';
$vars_misc{recycle_edit} = 'no';

..................

the line you may have edited in correctly was...

if ($vars_misc{use_cache} eq '') { $vars_misc{use_cache} = 'yes'; }

with a "}" at the end

sumting wong, no ?

Top
#144455 - 06/30/02 07:19 AM Re: [6.2x] Recycle bin
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Sorry for bumping an old topic, but I tried everything to get this to work with 6.3 and the error I got was a blank page when trying to edit a post.

Top
#144456 - 06/30/02 02:50 PM Re: [6.2x] Recycle bin
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
I would love to see this work on 6.3
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#144457 - 06/30/02 07:17 PM Re: [6.2x] Recycle bin
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
I'm going to try and fix this up. I tried a few things yesterday but still the edit wouldn't work.

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks